document.addEventListener("DOMContentLoaded",(function(){const e=document.querySelector("#main--checkbox"),l=document.querySelectorAll(".price_monthly"),c=document.querySelectorAll(".price_year");function o(){if(!1===e.checked)for(let e=0;c.length,e<l.length;e++)l[e].style.display="none",c[e].style.display="block";else if(!0===e.checked)for(let e=0;c.length,e<l.length;e++)c[e].style.display="none",l[e].style.display="block";else console.log("Error - checkbox!!!")}document.querySelector("#main--checkbox").onclick=o,o()}));